﻿<%@ Page Language="C#"  MasterPageFile="~/Site.Master"  AutoEventWireup="true"CodeBehind="UserAdmin.aspx.cs" Inherits="RDIFramework.WebApp.Modules.UserAdmin" %>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <script src="../Scripts/jquery-checkbox.js" type="text/javascript"></script>    
    <script src="../Scripts/date.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-checkbox.js" type="text/javascript"></script>
    <script src="../Scripts/jQuery.Select.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.easyListSplitter.js" type="text/javascript"></script>
    <script src="../Scripts/Business/UserAdmin.js" type="text/javascript"></script>
    <script src="../Scripts/easyui/plugins/jquery.linkbutton.js" type="text/javascript" />  
</asp:Content> 

<asp:Content ID="Content1" runat="server" contentplaceholderid="ContentPlaceHolder1">  
    <div class="toolbar"><%=base.BuildToolBarButtons() %></div>
    <table id="list" class="scroll" cellpadding="0" cellspacing="0"></table>
        <!--老方式绑定
        <asp:GridView ID="gvUserList" runat="server" AutoGenerateColumns="False" CssClass="grid2" Width="100%">
        <Columns>        
            <asp:BoundField DataField="Id" HeaderText="编号"   Visible ="false"/>       
            <asp:BoundField DataField="Code" HeaderText="编号"/>
            <asp:BoundField DataField="UserName" HeaderText="登录名"/>
            <asp:BoundField DataField="RealName" HeaderText="用户名"/>
            <asp:BoundField DataField="DepartmentName" HeaderText="部门"/>
            <asp:BoundField DataField="RoleId" HeaderText="角色主键"  Visible ="false"/>
            <asp:BoundField DataField="Enabled" HeaderText="有效"/>
            <asp:BoundField DataField="Email" HeaderText="邮箱地址"/>
            <asp:BoundField DataField="Mobile" HeaderText="手机号码"/>
            <asp:BoundField DataField="Description" HeaderText="描述"/>
            <asp:TemplateField HeaderText="管理" ItemStyle-Width="320px" ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <a href="#" rel="edit" rid="<%#Eval("roleid") %>" title="编辑"><span class="icon icon-edit">&nbsp;</span>[编辑]</a>&nbsp;
                    <a style="cursor: pointer;" rel="delete" title="系统提示" rid="<%#Eval("Id") %>"><span class="icon icon-delete">&nbsp;</span>[删除]</a>&nbsp;
                    <a rel="setpermission" href='../SetUserPermission.aspx?c=role&id=<%#Eval("Id") %>'><span class="icon icon-set1">&nbsp;</span>[设置密码]</a>&nbsp;
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    -->
    <div id="w"></div>
    <div id="d"></div>

     <script type="text/javascript">
         var curUserinfo = { "id": <%=base.UserInfo.Id %>, "name": '<%=base.UserInfo.RealName %>', "username": '<%=base.UserInfo.UserName %>' };       
         var varPermission = { "varPermissionAdd": '<%=permissionAdd %>', "varPermissionEdit": '<%=permissionEdit %>', "varPermissionDelete": '<%=permissionDelete %>' };
         $(function () {
             $('#a1').linkbutton('disable');
         });
    </script>

</asp:Content>